package Service;

import Domain.PageBean;
import Domain.User;

import java.util.List;
import java.util.Map;

public interface UserService {
    public PageBean<User> findUserByPage(String currentPage, String rows, Map<String, String[]> condition);

    public List<User> findUserById(int id);

    public void updateUser(User user);

    public void deleteUser(int id);

    public void delSelected(String[] ids);

    public List<User> UserLogin(User user);

    public void AddUser(User user);

    public List<User> FindUserByUsername(String username);

    public void changePassword(int id,String password);

    public void SetSecurity(int id,String question,String answer);

    public void UpdateUserInf(int id,String username,String header ,String tel ,String address);
}
